import Detail from '../pages/Detail/index'
import Home from '../pages/Home/index'
import Layout from '../pages/Layout/index'
import List from '../pages/List/index'
import My from '../pages/My/index'
import Order from '../pages/Order/index'
import  {createBrowserRouter} from 'react-router-dom'
const router=[
    {
        path:'/',
        element:<Layout />,
        children:[
            {
                path:'/',
                element:<Home />
            },
            {
                path:'/order',
                element:<Order />
            },
            {
                path:'/my',
                element:<My />
            },
        ]
    },{
        path:'/detail',
        element:<Detail />
    },{
        path:'/list',
        element:<List />
    },{
        path:'*',
        element:<div>404页面</div>
    }
]
export default createBrowserRouter(router)